home *** CD-ROM | disk | FTP | other *** search
/ PC Zone 96 / PC Zone #096.7z / Dppcz1200.mdf / Demos / Gunlok / data1.cab / Program_Executable_Files / scripts / walln_multifrag.gsh < prev    next >
Text File  |  2000-09-09  |  2KB  |  104 lines

  1. // defines a wall which has several stages of destructibility
  2. ////////////////////////////////////////////////////////////////////////////////////
  3.  
  4. // start wrapper - prevent multiple inclusions or recursive inclusions
  5.  
  6. //(this currently causes 'unrecognized preprocessor directive' warnings, until implemented)
  7. #ifndef INCLUDED_WALLn_MULTIFRAG_GSH
  8. #define INCLUDED_WALLn_MULTIFRAG_GSH
  9.  
  10. #include "defaults.gsh"
  11.  
  12. ////////////////////////////////////////////////////////////////////////////////////
  13.  
  14. // demolished wall and second lot of frag bits
  15.  
  16.  
  17.  
  18.  
  19. hierarchy Hcy_Fragwalln_Frag_B
  20. {
  21.     file    "objects\Fragwall narrow frag B.rif"
  22.     name    "Fragwall narrow frag B"
  23.     hotspot none
  24. }
  25.  
  26. role Rol_Fragwalln_Frag_B : Rol_PlacedObject
  27. {
  28.     shape            Hcy_Fragwalln_Frag_B
  29.     identifier        "fragwalln_frag_B"
  30.     frag control    yes
  31.     hit test ignore yes
  32. }
  33.  
  34. // damaged wall and first lot of frag bits
  35.  
  36. shape Shp_Fragwalln_B
  37. {
  38.        file "objects\Fragwall narrow B.rif"
  39.        name "Fragwall narrow B"
  40. }
  41.  
  42. frag data Frg_Fragwalln_B    // this creates Rol_Fragwall_C and frag bits
  43. {
  44.     role            Rol_Fragwalln_Frag_B
  45.     replace         yes                // get rid of the old wall
  46.     scale            7
  47.     symmetric        no
  48. }
  49.  
  50. role Rol_Fragwalln_B : Rol_PlacedObject
  51. {
  52.     shape            Shp_Fragwalln_B
  53.     identifier        "fragwalln_b"
  54.     destructibility    Frg_Fragwalln_B
  55.     armour            0
  56.     ai blocker
  57. }
  58.  
  59. hierarchy Hcy_Fragwalln_Frag_A
  60. {
  61.     file    "objects\Fragwall narrow frag A.rif"
  62.     name    "Fragwall narrow frag A"
  63.     hotspot none
  64. }
  65.  
  66. role Rol_Fragwalln_Frag_A : Rol_PlacedObject
  67. {
  68.     shape            Hcy_Fragwalln_Frag_A
  69.     identifier        "fragwall_frag_A"
  70.     frag control    yes
  71.     hit test ignore yes
  72. }
  73.  
  74. // the intact wall
  75.  
  76. shape Shp_Fragwalln_A
  77. {
  78.        file "objects\Fragwall narrow A.rif"
  79.        name "Fragwall narrow A"
  80. }
  81.  
  82. frag data Frg_Fragwalln_A    // this creates Rol_Fragwalln_B and frag bits
  83. {
  84.     role            Rol_Fragwalln_Frag_A
  85.     replace role        Rol_Fragwalln_B
  86.     replace         yes                    // get rid of the old wall
  87.     scale            10
  88.     symmetric        no
  89. }
  90.  
  91. role Rol_Fragwalln_A : Rol_PlacedObject
  92. {
  93.     shape            Shp_Fragwalln_A
  94.     identifier        "fragwalln_a"
  95.     destructibility    Frg_Fragwalln_A
  96.     armour            0
  97.     ai blocker
  98. }
  99.  
  100. ////////////////////////////////////////////////////////////////////////////////////
  101.  
  102. // end wrapper - for preventing multiple or recursive inclusions
  103. #endif // !INCLUDED_WALLn_MULTIFRAG_GSH
  104.